//
//@File    :	7.16_recur.cpp
//@Time    :	2021/08/14 16:47:46
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	using recursion
//

#include <iostream>

using namespace std;
void countdown(int n);
int main()
{
    countdown(4);
    system("pause");
    return 0;
}
void countdown(int n)
{
    cout<<"Counting down ..."<<n<<endl;
    if (n>0)
    {
        countdown(n-1);
    }
    cout<<n<<": Kaboom!\n";
}